# dotfiles

```
Distro          ➔ Arch Linux
WM              ➔ bspwm
Shell           ➔ mksh
Font            ➔ Go Mono
Terminal        ➔ xst
File Manager    ➔ Ranger/Thunar
Bar             ➔ Polybar
Wallpaper       ➔ setroot
Volume control  ➔ amixer
Text Editor     ➔ neovim
Media Player    ➔ mpv
Browser         ➔ firefox
Pdf Viewer      ➔ Zathura
Image Viewer    ➔ sxiv
```

# Instalation

Execute the command

```
bash <(wget https://notabug.com/noamcore/dotfiles/bootstrap.sh)
```

# Bluetooth

I'm using only ALSA (not PulseAudio), so you must configure manually some files.

Install the packages `bluez-alsa-git`, `bluez`, `bluez-utils`

Use this
```
grep -q bluealsa /etc/dbus-1/system.d/bluetooth.conf || sed -i '/<\/busconfig>/ i\ \ <policy user="bluealsa">\n    <allow send_destination="org.bluez"\/>\n  <\/policy>\n' /etc/dbus-1/system.d/bluetooth.conf
```

```
content=<<<EOF
  <policy user="bluealsa">
    <allow send_destination="org.bluez"/>
  </policy>
EOF
sed -e '/$content/{s//$content/;:a;n;ba;q}' -e "/<\/busconfig>/i/$content" /etc/dbus-1/system.d/bluetooth.conf
```

*OR*
Edit the file `/etc/dbus-1/system.d/bluetooth.conf`, add the lines above, just before the closing `</busconfig>`

```
<policy user="bluealsa">
  <allow send_destination="org.bluez"/>
</policy>
```

```
bluetoothctl
power on
agent on
default-agent
scan on
pair XX:XX:XX:XX
connect XX:XX:XX:XX
```

![Arch](arch.png)
